package com.banmao.youZone.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Builder
@TableName("history")
public class History {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("add_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addDate;

    @TableField("userId")
    private Integer userId;

    @TableField("request_log")
    private String request_log;

    @TableField("response_log")
    private String response_log;

    @TableField("success")
    private Boolean success;

}
